package com.gdqy.FCS.dao;

import java.util.List;

import com.gdqy.FCS.common.persistence.CrudDao;
import com.gdqy.FCS.common.persistence.annotation.MybatisDao;
import com.gdqy.FCS.entity.Clothing;

@MybatisDao
public interface ClothingDao extends CrudDao<Clothing>{
	public Clothing selectById(int id);
	
	public int selectCountByEnterprise_id(int enterprise_id);
	
	public List<Clothing> selectByLiked();
	
	public List<Clothing> selectMatchDesignClothing(String type_code, String style_code, String pattern_code, String component_code);
	
	public List<Clothing> selectSimilarClothing(String type_code,String style_code,String pattern_code,String component_code,
			String weave_code,String color,String season,int id);
	
	public int selectAllCount();
	
	public  List<Clothing> selectByFabric_code(String component_code);
	
	public int deleteById(int enterprise_id);
	
	public int selectCountByBrand_id(int brand_id);
	
	public List<Clothing> selectByBrand_id(int brand_id);
	
	public List<Clothing> selectClothingByTypeAndBrand(String big_code,String middle_code,String small_code,int brand_id);
	
	public List<Clothing> selectClothingByClothingTypeAndBrand(String code,String brand_id,String style_code);
	
	public int selectPopularityByEnterprise_id(int enterprise_id);
}
